package com.i18n;

import java.text.MessageFormat;
import java.util.Locale;
import java.util.ResourceBundle;

import com.sun.corba.se.impl.protocol.giopmsgheaders.Message;

public class Test3 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		Locale locale = Locale.getDefault();
		
		ResourceBundle  bundle = ResourceBundle.getBundle("hellofile", locale);
		
		String value = bundle.getString("hello");
		
		System.out.println( value );
		
		String result = MessageFormat.format(value , new Object[]{"北京"});
		
		System.out.println( result );
		
		
	}
}
